<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  /* 基础字体大小 */
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000;
  color: #fff;
}

/* 手机竖屏适配 */
@media screen and (min-width: 768px) {
  #app {
    max-width: 375px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
  }
}

/* 移动端底部导航栏优化 */
@media screen and (max-width: 767px) {
  #app {
    width: 100%;
    max-width: 100%;
  }

  /* 确保底部导航栏在小屏幕上更紧凑 */
  .bottom-nav {
    height: 50px !important;
    padding: 0 10px !important;
  }

  .nav-item {
    padding: 4px 8px !important;
    min-width: 50px !important;
  }

  .nav-icon {
    font-size: 16px !important;
    margin-bottom: 2px !important;
  }

  .nav-text {
    font-size: 9px !important;
  }
}

/* 抖音风格的按钮样式 */
.douyin-btn {
  background: linear-gradient(135deg, #ff2d92, #ff6b35);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.douyin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 45, 146, 0.4);
}

/* 抖音风格的输入框 */
.douyin-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
}

.douyin-input:focus {
  border-color: #ff2d92;
  box-shadow: 0 0 10px rgba(255, 45, 146, 0.3);
}

/* Element UI 样式覆盖 */
.el-input__inner {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.el-input__inner:focus {
  border-color: #ff2d92 !important;
  box-shadow: 0 0 10px rgba(255, 45, 146, 0.3) !important;
}

.el-input__inner::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.el-button--primary {
  background: linear-gradient(135deg, #ff2d92, #ff6b35) !important;
  border: none !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}

.el-button--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(255, 45, 146, 0.4) !important;
}

.el-form-item__error {
  color: #ff6b6b !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 45, 146, 0.6);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 45, 146, 0.8);
}
</style>